Previous Thread
Next Thread
Print Thread
Rate Thread
#224351 09/10/2002 7:53 AM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Hmm, This is the PM I recieved this morning, I can duplicate his problem:

[]Parse error: parse error, unexpected $ in /my path/forums/showthreaded.php on line 966


I keep getting that when trying to read posts in IE. Netscape can open them but it won't show everything on the screen, the post goes too far to the right and it won't scroll over far enough. =c\ Is it my comp or the site? thanks!


I checked the line number the error pointed to and its just the ?> at the end of the file. I don't see any $ anywhere

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
It's hard to say without seeing the script... did you modify the script in any way?

Spaces after the ?> can cause "headers already sent" errors but I have never seen anything mention that parse errors could occur so there must be something further up in the script that's at fault...

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
The only thing that has been done as far as hacks to that file was the quote hack, which is basically the same thing for both threaded and flat mode, and flat works fine.

Hmm... I can send you a copy of the script if you want to look, but I'll double check where I inserted the few lines for the quote feature and make sure nothing is amiss.

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
Did you miss a ';' at the end of a line, or a " perhaps? I've gotten similar errors when I forgot one of the characters at the end of a line before the reported error line.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Hmm... This is the only thing I changed before this started happening:

code:
if ($reply == "on") {
$replylinkstart = "<a href="{$config['phpurl']}/newreply.php?Cat=$Cat&Board=$Board&Number=$Number&page=$page&view=$view&what=showthreaded&sb=$sb&o=$o">";
$replylinkstop = "</a>";
$quotelinkstart = "<a href="{$config['phpurl']}/newreply.php?Cat=$Cat&Board=$Board&Number=$Number&page=$page&view=$view&what=showthreaded&sb=$sb&o=$o&quote=y">";
$quotelinkstop = "</a>";
}


Last edited by msula; 09/10/2002 4:11 PM.
Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I looked and looked but it looks like that code wouldn't be the cause... lol

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I know... me too And it was working fine, but I JUST added that hack lastnight, and when I woke up this morning I had a few PM's about it

I will try uploading a fresh showthreaded.php and see what happens

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
wow.. I need to stop drinking so much coffee I think. I compared it to a stock showthreaded.php and I was missing one more closing } after the code I edited, I must have somehow deleted it

I'm going back to work, I hate computers!!!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 704
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 16
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)